<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>优狐在线答题系统</title>

<link rel="stylesheet" href="${pageContext.request.contextPath}/css/index.css" type="text/css" media="screen"/>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/tendina.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/common.js"></script>

<style>
  *{
    margin: 0px;
    padding: 0px;
  }
  h3{
    margin: 20px;
  }

  /*.layout_left_menu ul{
    margin: 20px;
  }*/

  .layout_left_menu ul li{
    list-style: none;
    margin: 20px;
  }

  .layout_left_menu ul li a{
    font-size: 16px;
    font-weight: bold;
    font-family: "楷体";
    text-decoration: none;
    color: #333;
  }

  iframe{
    z-index: 100;
  }
</style>

</head>
<body>
<!--顶部-->
<div class="layout_top_header">
  <div style="float: left">
    <span style="font-size: 16px;line-height: 45px;padding-left: 20px;color: #8d8d8d">优狐在线答题系统</span></div>
  <div id="ad_setting" class="ad_setting">
    <a class="ad_setting_a" href="javascript:; ">
      <i class="icon-user glyph-icon" style="font-size: 20px"></i>
      <span>${user.username}</span>
      <i class="icon-chevron-down glyph-icon"></i>
    </a>
    <ul class="dropdown-menu-uu" style="display: none" id="ad_setting_ul">
      <%--<li class="ad_setting_ul_li"><a href="javascript:;"><i class="icon-user glyph-icon"></i> 个人中心 </a></li>--%>
      <li class="ad_setting_ul_li"><a target="menuFrame" href="${pageContext.request.contextPath}/modifyPsd.jsp"><i class="icon-cog glyph-icon"></i> 密码修改 </a></li>
      <li class="ad_setting_ul_li">
        <a href="${pageContext.request.contextPath}/logout">
          <i class="icon-signout glyph-icon"></i> <span class="font-bold">退出</span>
        </a>
      </li>
    </ul>
  </div>
</div>
<!--顶部结束-->
<!--菜单-->
<div class="layout_left_menu">
  <h3>首页</h3>

  <ul>

    <c:if test="${user.role_id == 1 ||user.role_id == 2}">
      <li><a href="${pageContext.request.contextPath}/add.jsp" target="menuFrame">添加Java试题</a></li>
      <%--<li><a href="${pageContext.request.contextPath}/addSQL.jsp" target="menuFrame">添加数据库试题</a></li>--%>
    </c:if>


    <li><a href="${pageContext.request.contextPath}/dati/list?pagenum=1" target="menuFrame">试题列表</a></li>
    <li><a href="${pageContext.request.contextPath}/dati/myHistory?pagenum=1" target="menuFrame">我的答题记录</a></li>
    <li><a href="${pageContext.request.contextPath}/dati/findRecordByClsName?pagenum=1" target="menuFrame">班级答题记录</a></li>
    <li><a href="${pageContext.request.contextPath}/dati/getScoreListOfCls" target="menuFrame">班级成绩列表</a></li>

    <li><a href="${pageContext.request.contextPath}/dati/getCls" target="menuFrame">其他班级成绩</a></li>
    <%--<li><a href="${pageContext.request.contextPath }/logout" target="menuFrame">注销</a></li>--%>
  </ul>

</div>
<!--菜单-->
<div id="layout_right_content" class="layout_right_content">
  <div class="mian_content">
    <div id="page_content">
      <iframe id="menuFrame" name="menuFrame" src="${pageContext.request.contextPath}/welcome.jsp" style="overflow:visible;"
              scrolling="yes" frameborder="no" width="100%" height="100%"></iframe>
    </div>
  </div>
</div>
<div class="layout_footer">
  <p>Copyright © 2020 - 优狐科教</p>
</div>
</body>
<script>
  $(".layout_left_menu ul li a").click(function () {
    $(this).css("text-decoration","underline").parent().siblings().children().css("text-decoration","none");
  })
</script>
</html>